import { useModel } from '@umijs/max';
import { Tabs } from 'antd';
import styles from './index.module.scss';
export default () => {
  const { currentTabs } = useModel('global');  
  return (
    <div className={`bg-white ${styles.tabsView}`}>
      <div className="px-2 pt-1">
        <Tabs
          tabBarGutter={3}
          style={{ fontSize: 12 }}
          type="editable-card"
          size="small"
          items={currentTabs}
          hideAdd
        ></Tabs>
      </div>
    </div>
  );
};
